package 实验六;

import java.io.Serializable;



public class Course implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 8624498237866060922L;
	public String Cno,Cname,Location,Time,Semester;
	public int Credit;
	Professor professor;
	public Course(String no,String na,String loc,String tm,String sm,int cd,Professor pf){
		Cno = no;
		Cname = na;
		Location = loc;
		Time = tm;
		Semester = sm;
		Credit = cd;
		professor = pf;
	}
	public String toString() {
		return "课程号： "+ Cno+" "+ "课程名： "+Cname+" " + "上课地点： "+Location+" " + "上课时间： "+Time+" " 
				+"所属学期： "+Semester+" "+ "学分： "+Credit+" " +"授课教师： "+professor.toString()+"\n";
	}
	public void printCourse() {
		System.out.println(this);
	}
}